package com.hbnu.list;

public class ArrayDemo {
    Object[] data;

    public ArrayDemo(int capacity) {
        this.data = new Object[capacity];
    }

    //
    public void addData(int index, Object obj) {
        this.data[index] = obj;
    }

    public Object getData(int index) {
        return this.data[index];
    }
}
